package dataService.userDataService;

import Enum.Factor;

public class UserHeaders {
	public static String getHeader(Factor f){
		switch(f){
		case StudentID:	return "user.userID";
		case TeacherID: return "user.userID";
		case UserID: return "user.userID";
		case Faculty : return "user.faculty";
		case Role: return "user.userRole";
		case RegisterTime: return"user.registerTime";
		case Period:return"period";
		default: return null;
		}
	}
	
	public static String ID(){
		return "user.userID";
	}
	
	public static String name(){
		return "user.username";
	}
	
	public static String password(){
		return "user.password";
	}
	
	public static String role(){
		return "user.userRole";
	}
	
	public static String birth(){
		return "user.birthday";
	}
	
	public static String age(){
		return "user.age";
	}
	
	public static String gender(){
		return "user.gender";
	}
	
	public static String faculty(){
		return "user.faculty";
	}
	
	public static String home(){
		return "user.hometown";
	}
	
	public static String registerTime(){
		return "user.registerTime";
	}
	
	public static String IDEqu(String condition){
		return "userID"+"='"+condition+"'";
	}
	
	public static String nameEqu(String condition){
		return "username"+"='"+condition+"'";
	}
	
	public static String passwordEqu(String condition){
		return "password"+"='"+condition+"'";
	}
	
	public static String roleEqu(String condition){
		return "userRole"+"='"+condition+"'";
	}
	
	public static String birthEqu(String condition){
		return "birthday"+"='"+condition+"'";
	}
	
	public static String ageEqu(String condition){
		return "age"+"='"+condition+"'";
	}
	
	public static String genderEqu(String condition){
		return "gender"+"='"+condition+"'";
	}
	
	public static String facultyEqu(String condition){
		return "faculty"+"='"+condition+"'";
	}
	
	public static String homeEqu(String condition){
		return "hometown"+"='"+condition+"'";
	}
	
	public static String registerTimeEqu(String condition){
		return "registerTime"+"='"+condition+"'";
	}
}
